understand javascript in the browser trailhead solution